package com.liusaidh.domain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.time.LocalDate;
import java.util.List;
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "UserReviews对象：userReviews评论类",description = "每篇文章返回一个List集合，list中有多个userReviews对象，作为评论的内容")
public class UserReviews {
    @ApiModelProperty(value = "一级或二级评论的id",dataType = "Integer")
    private Integer id;
    //--------------------------用户信息---------------------------------
    @ApiModelProperty(value = "其他用户的id",dataType = "otherId")
    private Integer otherId;
    @ApiModelProperty(value = "其他用户昵称",dataType = "String")
    private String username;
    @ApiModelProperty(value = "其他用户头像",dataType = "String")
    private String userAvatarUrl;
    @ApiModelProperty(value = "其他用户的地址",dataType = "String")
    private String address;
    //--------------------------文章信息---------------------------------------
    @ApiModelProperty(value = "该文章评论总数",dataType = "Integer")
    private Integer number;
    @ApiModelProperty(value = "评论发布时间",dataType = "String")
    private String publishTime;
    @ApiModelProperty(value = "评论内容",dataType = "String")
    private String comment;
    @ApiModelProperty(value = "该评论的点赞数",dataType = "Integer")
    private Integer likes;
    @ApiModelProperty(value = "每条评论下的其他评论（二级评论）",dataType = "List")
    private List<UserReviews> list;
}
